package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorsMapper {

    //新增口味
    void addFlavors(List<DishFlavor> flavors);

    //根据菜品id删除关联的口味
    void deleteById(List<Long> ids);

    //根据菜品id查询口味数据
    @Select("select * from dish_flavor where dish_id=#{id}")
    List<DishFlavor> checkFlavorById(Long id);
}
